package com.ct.rabbitmqspringboot.listener;

import com.ct.rabbitmqspringboot.constant.Constants;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class PushListener {

    // 推模式
    @RabbitListener(queues = Constants.PUSH_QUEUE)
    public void queueListener(String message) {
        System.out.println("推模式: " + message);
    }
}
